package chat

import (
	"gitee.com/saxon134/go-utils/saOrm"
	"gitee.com/saxon134/workflow/enum"
)

const TBNResource = "resource"

type TblResource struct {
	Id       int64       `json:"id"`
	CreateAt *saOrm.Time `json:"createAt"`
	ChatId   int64       `json:"chatId"`
	Type     int         `json:"type"` //10-文字(一般不存在) 11-链接 20-文档 21-图片 22-视频 23-DOC 24-PDF
	Title    string      `json:"title"`
	Content  string      `json:"content"`
	Status   enum.Status `json:"status"`
	Seq      int         `json:"seq"`
}

func (m *TblResource) TableName() string {
	return TBNResource
}
